'''
Utility class to help handling files
'''
import os

class FileUtil(object):
    
    @classmethod
    def write(cls, file, content):
        try:
            file = open(file, "w")
            file.write(content)
        finally:
            file.close()
            
    
    @classmethod
    def info(cls, file):
        path, name = os.path.split(file)
        title = os.path.splitext(name)[0]
        return [path, title]
        
        